<!DOCTYPE html>
<html>
<head>
    <title>配置</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../public/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../public/css/font-awesome.min.css">
    <link rel="stylesheet" href="../../public/css/main.css">
    <link rel="stylesheet" href="../../public/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="../../public/plugins/bootstrap-switch/bootstrap-switch.min.css">

    <script src="../../public/libs/jquery.min.js"></script>
    <script src="../../public/libs/vue.min.js"></script>
    <script src="../../public/libs/bootstrap.min.js"></script>
    <script src="../../public/plugins/bootstrap-switch/bootstrap-switch.min.js"></script>
    <!--<script src="../../public/js/common.js"></script>-->
</head>
<body>
<div id="rrapp" v-cloak>
    <div class="panel panel-default">
        <div class="panel-heading">秒刷配置</div>
        <table class="table table-bordered">
            <tr>
                <td class="table_title col-md-3">VIP价格(元)：</td>
                <td class="col-md-3">
                    <input type="number" v-model="config.vipMoney">
                </td>
                <td class="table_title col-md-3">优惠价(元)：</td>
                <td class="col-md-3">
                    <input type="number" v-model="config.vipDiscount">
                </td>
            </tr>
            <tr>
                <td class="table_title col-md-3">优惠截止期：</td>
                <td class="col-md-3">
                    <input type="text" id="date1" v-model="config.discountEndDate">
                </td>
                <td class="table_title col-md-3">活动返现金额(元)：</td>
                <td class="col-md-3">
                    <input type="number" v-model="config.backMoney">
                </td>
            </tr>
            <tr>
                <td class="table_title col-md-3">返现条件金额(元)：</td>
                <td class="col-md-3">
                    <input type="number" v-model="config.countBack">
                </td>
                <td class="table_title col-md-3">返现活动结束时间：</td>
                <td class="col-md-3">
                    <input type="text" id="date2" v-model="config.backEndDate">
                </td>
            </tr>
            <tr>
                <td class="table_title col-md-3">秒刷提现通道：</td>
                <td class="col-md-3">
                    <select v-model="config.settleAccess">
                        <option value="0">请选择提现通道</option>
                        <option v-for="access in accesses" :value="access.payAccessId" v-html="access.accessName"></option>
                    </select>
                </td>
                <td class="table_title col-md-3">急速收款开关</td>
                <td class="col-md-3 bootstrap-switch">
                    <input type="checkbox" name="zzz" v-model="config.isOpen" >
                </td>
            </tr>
            <tr>
                <td class="table_title col-md-3">VIP缴费通道：</td>
                <td class="col-md-3">
                    <select v-model="config.vipAccess">
                        <option value="0">请选缴费现通道</option>
                        <option v-for="access in accesses" :value="access.payAccessId" v-html="access.accessName"></option>
                    </select>
                </td>
                <td class="table_title col-md-3"></td>
                <td class="col-md-3">
                </td>
            </tr>
        </table>
    </div>
    <div class="col-md-12 text-center">
        <a class="btn btn-danger" href="#" @click="saveOrUpdate" role="button">保存</a>
    </div>
</div>

<script src="../../public/js/sys/payConfig.js"></script>
<script src="../../public/plugins/layui/layui.all.js"></script>
<script>
    ;!function(){
        var laydate = layui.laydate
            ,form = layui.form;
        //执行一个laydate实例
        laydate.render({
            elem: '#date1', //指定元素
            format: 'yyyy-MM-dd HH:mm:ss'
        });
        laydate.render({
            elem: '#date2', //指定元素
            format: 'yyyy-MM-dd HH:mm:ss'
        });
//        layer.msg('Hello World');
    }();
</script>
</body>
</html>